<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAlbumlistTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('albumlist', function (Blueprint $table) {
            $table->bigIncrements('id');   //id
            $table->string('alb_img')->default('storage/uploads/20200305/bef3a02d1a835025a590fb73218da1eb.jpg');  //图片
            $table->integer('photo_id');        //所属相册
            $table->integer('status')->default(1);        //状态 0删除 1未删除

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('albumlist');
    }
}
